<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
		*{
			margin: 0px;
			padding: 0px;
		}
		li{
			list-style: none;
		}

		.box{
			width: 400px;
			height: 230px;
			background: red url() 0 0 no-repeat;
			margin: 100px auto;
			overflow: hidden;
		}
		.top{
			height: 30px;
			width: 100%;
			background: blue url() 0 0 no-repeat;
		}
		.top_item{
			width: 20%;
			height: 30px;
			background: #F5F5F5 url() 0 0 no-repeat;
			float: left;
			line-height: 30px;
			text-align: center;
			cursor: pointer;
		}
		.bottom{
			height: 200px;
			width: 500%;
			background: green url() 0 0 no-repeat;
			position: relative;
			left: 0px;
		}
		.bottom_item{
			height: 200px;
			width: 400px;
			background: #80B600 url() 0 0 no-repeat;
			line-height: 200px;
			text-align: center;
			font-size: 50px;
			color: #fff;
			float: left;
		}
		.cur{
			background:#80B600;color: #fff
		}
	</style>
	<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
	<script>
		$(function(){

			$('.top_item').click(function(event) {
				$(this).addClass('cur').siblings().removeClass('cur');
				$('.bottom').animate({left: -400*$(this).index()+'px'},500);
			});

		})
	</script>
</head>
<body>
	<div class="box">
		<ul class="top">
			<li class="top_item cur">Tab1</li>
			<li class="top_item">Tab2</li>
			<li class="top_item">Tab3</li>
			<li class="top_item">Tab4</li>
			<li class="top_item">Tab5</li>
		</ul>
		<ul class="bottom">
			<li class="bottom_item" style="display: block;">content1</li>
			<li class="bottom_item">content2</li>
			<li class="bottom_item">content3</li>
			<li class="bottom_item">content4</li>
			<li class="bottom_item">content5</li>
		</ul>
	</div>
</body>
</html>